UNSHAR

Section: User Commands (1)
Updated: August 12, 1990
Index Return to Main Contents
 

NAME

unshar - unpack a shar file  

SYNOPSIS

unshar [ -d directory ] [ -c ] [ -e | -E exit_line ] [ file ... ]  

DESCRIPTION

Unshar scans mail messages looking for the start of a shell archive. It then passes the archive through a copy of the shell to unpack it. It will accept multiple files. If no files are given, standard input is used.

The -d option tells unshar to change directory before unpacking any files.

The -c option is passed through to 'sh' as a parameter to the unpacked script. Many archive shar scripts (including those produced by shar 3.40 and newer) use this to indicate that existing files should be overwritten.

Unshar can unpack shar files that are concatenated in one file with the -e option, which separates files by recognizing the "exit 0" string at the beginning of a line. The -E option allows you to specify the string that separates archives if "exit 0" isn't appropriate. (Hint: most .signatures have a "--" on a line right before them). -e is equivalent to -E "exit 0".  

SEE ALSO

shar(1)  

DIAGNOSTICS

Any message from the shell may be displayed.  

AUTHORS

Michael Mauldin at Carnegie-Mellon University
guido@mcvax (Guido van Rossum at CWI, Amsterdam)
davidsen@sixhub.uuxp (Bill Davidsen)
wht%n4hgf@gatech.edu (Warren Tucker)
rhg@CPS.COM (Richard H. Gumpertz)
colas@avahi.inria.fr (Colas Nahaboo)

man pages:
jhd@irfu.se (Jan Dj{rv)


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
DIAGNOSTICS
AUTHORS

This document was created by man2html, using the manual pages.
Time: 04:06:15 GMT, December 02, 2024